const myTarget = {};

const proxy = new Proxy(myTarget, {
    setPrototypeOf(target, prototype) {
        console.log('setPrototypeOf()');
        return Reflect.getPrototypeOf(...arguments);
    },
});


Object.setPrototypeOf('foo', Object);